package cn.org.xuanguang.kepler.hormos.rdb.dml.operator.select;

import cn.org.xuanguang.kepler.hormos.rdb.dml.operator.OperatorResult;
import lombok.Getter;
import lombok.Setter;

public class SelectOperatorResulet<R> implements OperatorResult<R> {
    /**
     * 更新记录数
     */
    @Getter
    @Setter
    private R resultWrapper;

    private SelectOperatorResulet(R resultBean) {
        this.resultWrapper = resultBean;
    }

    public static <R> SelectOperatorResulet of(R resultBean) {
        return new SelectOperatorResulet(resultBean);
    }

    /**
     * 获取的结果集
     *
     * @return
     */
    @Override
    public R getResult() {
        return getResultWrapper();
    }
}
